package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
/**
 * 物品库存记录对象 w_goods_records
 *
 * @author ruoyi
 * @date 2022-01-07
 */
@Data
@ApiModel(value = "WGoodsRecords", description = "物品库存记录对象 w_goods_records")
public class WGoodsRecords extends BaseEntity{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @ApiModelProperty(value = "${comment}")
    private Long id;

    /** 订单ID */
    @Excel(name = "订单ID")
    @ApiModelProperty(value = "订单ID")
    private Long orderId;

    /** 订单编号 */
    @Excel(name = "订单编号")
    @ApiModelProperty(value = "订单编号")
    private String orderSn;

    /** 客户ID */
    @Excel(name = "客户ID")
    @ApiModelProperty(value = "客户ID")
    private Long customerId;

    /** 公司ID 也是部门id */
    @Excel(name = "公司ID 也是部门id")
    @ApiModelProperty(value = "公司ID 也是部门id")
    private Long deptId;

    /** 物品id */
    @Excel(name = "物品id")
    @ApiModelProperty(value = "物品id")
    private Long goodsId;

    /** 物品名称 */
    @Excel(name = "物品名称")
    @ApiModelProperty(value = "物品名称")
    private String goodsName;

    /** 出入库，  1.使用（生产使用）  2.盘点  3入库  4退回  */
    @Excel(name = "出入库，  1.使用", readConverterExp = "生=产使用")
    @ApiModelProperty(value = "出入库，  1.使用")
    private Integer isIn;

    /** 变化数量 */
    @Excel(name = "变化数量")
    @ApiModelProperty(value = "变化数量")
    private Integer changeNumber;

    /** 出入库类型（ 1 出库 2入库） 0代表处理锁定库存的或者 不动库存的 */
    @Excel(name = "出入库类型", readConverterExp = "1=,出=库,2=入库")
    @ApiModelProperty(value = "出入库类型")
    private Integer inType;

    public void setId(Long id){
        this.id = id;
    }

    public Long getId(){
        return id;
    }
    public void setOrderId(Long orderId){
        this.orderId = orderId;
    }

    public Long getOrderId(){
        return orderId;
    }
    public void setOrderSn(String orderSn){
        this.orderSn = orderSn;
    }

    public String getOrderSn(){
        return orderSn;
    }
    public void setCustomerId(Long customerId){
        this.customerId = customerId;
    }

    public Long getCustomerId(){
        return customerId;
    }
    public void setDeptId(Long deptId){
        this.deptId = deptId;
    }

    public Long getDeptId(){
        return deptId;
    }
    public void setGoodsId(Long goodsId){
        this.goodsId = goodsId;
    }

    public Long getGoodsId(){
        return goodsId;
    }
    public void setGoodsName(String goodsName){
        this.goodsName = goodsName;
    }

    public String getGoodsName(){
        return goodsName;
    }
    public void setIsIn(Integer isIn){
        this.isIn = isIn;
    }

    public Integer getIsIn(){
        return isIn;
    }
    public void setChangeNumber(Integer changeNumber){
        this.changeNumber = changeNumber;
    }

    public Integer getChangeNumber(){
        return changeNumber;
    }
    public void setInType(Integer inType){
        this.inType = inType;
    }

    public Integer getInType(){
        return inType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderId", getOrderId())
            .append("orderSn", getOrderSn())
            .append("customerId", getCustomerId())
            .append("deptId", getDeptId())
            .append("goodsId", getGoodsId())
            .append("goodsName", getGoodsName())
            .append("isIn", getIsIn())
            .append("changeNumber", getChangeNumber())
            .append("inType", getInType())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
